KtorStandardCrudRepo

class KtorStandardCrudRepo<ObjectType, IdType, InputValue>(baseUrl: String, baseSubpart: String, unifiedRequester: UnifiedRequester, objectsSerializer: KSerializer<ObjectType>, objectsNullableSerializer: KSerializer<ObjectType?>, inputsSerializer: KSerializer<InputValue>, idsSerializer: KSerializer<IdType>) : StandardCRUDRepo<ObjectType, IdType, InputValue> , ReadStandardCRUDRepo<ObjectType, IdType> , WriteStandardCRUDRepo<ObjectType, IdType, InputValue>

Constructors

Link copied to clipboard
fun <ObjectType, IdType, InputValue> KtorStandardCrudRepo(baseUrl: String, baseSubpart: String, client: <ERROR CLASS>, objectsSerializer: KSerializer<ObjectType>, objectsNullableSerializer: KSerializer<ObjectType?>, inputsSerializer: KSerializer<InputValue>, idsSerializer: KSerializer<IdType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat)

Functions

Link copied to clipboard
open suspend override fun contains(id: IdType): Boolean
Link copied to clipboard
open suspend override fun count(): Long
Link copied to clipboard
open suspend override fun create(values: List<InputValue>): List<ObjectType>
Link copied to clipboard
open suspend override fun deleteById(ids: List<IdType>)
Link copied to clipboard
open suspend override fun getById(id: IdType): ObjectType?
Link copied to clipboard
open suspend override fun getByPagination(pagination: Pagination): PaginationResult<ObjectType>
Link copied to clipboard
open suspend override fun update(values: List<UpdatedValuePair<IdType, InputValue>>): List<ObjectType>
open suspend override fun update(id: IdType, value: InputValue): ObjectType?

Properties

Link copied to clipboard
open override val deletedObjectsIdsFlow: Flow<IdType>
Link copied to clipboard
open override val newObjectsFlow: Flow<ObjectType>
Link copied to clipboard
open override val updatedObjectsFlow: Flow<ObjectType>